public class Test66 {
    public static void main(String[] args) {
        double area1 = getArea(10.2,5.6);
        double area2 = getArea(8.7,7.2);
        if(area1<area2){
            System.out.println("第二个长方形面积更大");
        }else{
            System.out.println("第一个长方形面积更大");
        }

    }
    public static double getArea(double length, double width){
        double area = length * width;
        return area;
    }
}
